package com.ysm.smfu.callBack;

import com.google.gson.Gson;
import com.ysm.smfu.bean.Friends;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2016/10/20.
 */
public abstract class FriendsCallBack extends Callback<Friends> {
    @Override
    public Friends parseNetworkResponse(Response response, int id) throws Exception {

        String string = response.body().string();
        Friends friends = new Gson().fromJson(string, Friends.class);
        return friends;
    }

}
